package com.zjlp.seproject.mapper;

import com.zjlp.seproject.pojo.Annex;
import com.zjlp.seproject.pojo.Profile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface AnnexMapper {
    @Update("insert into annex(sid, url) " +
            "values(#{sid}, #{url})")
    Integer setAnnex(Integer sid, String url);

    @Select("select url from annex where sid = #{sid}")
    List<String> getAnnex(Integer sid);
}
